package com.rainng.coursesystem.module.task.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.rainng.coursesystem.controller.admin.vo.SysGroupReqDTO;
import com.rainng.coursesystem.model.entity.UserGroupEntity;
import com.rainng.coursesystem.model.entity.VisBatchEntity;
import com.rainng.coursesystem.module.task.dto.request.TaskQueryReqDTO;
import com.rainng.coursesystem.module.task.dto.response.TaskPagingResDTO;
import com.rainng.coursesystem.module.task.entity.Task;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface BatchMapper extends BaseMapper<VisBatchEntity> {


    //批次分页查询
    IPage<VisBatchEntity> queryGroupPageList(@Param("po") VisBatchEntity po, Page<VisBatchEntity> pageParam);

    //批次分页总数查询
    Integer queryGroupCount(@Param("po") VisBatchEntity po);

    List<VisBatchEntity> getThisBatchInfo(Date date);

    VisBatchEntity getMaxBatchInfo();

}
